#include <linux/irq.h>
#include <linux/hardirq.h>

static void handle_riscv_irq(struct pt_regs *regs)
{
    irq_enter_rcu();
    __handle_arch_irq(regs);
    irq_exit_rcu();
}

void do_irq(struct pt_regs *regs)
{
    handle_riscv_irq(regs);
}

void do_trap(struct pt_regs *regs)
{
    while (1);
}
